package cn.kgc.springcloud.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author mosin
 * date 2022/1/6
 * @version 1.0
 */
@FeignClient(value = "HYSTRIXCLIENT",fallback = FallbackHystrixClient.class)
public interface HystrixClient {

    @GetMapping("/h1")
    String test01();
    @GetMapping("/h2")
    String test02(@RequestParam Integer id);

}
